import axios from "axios"
import {baseURL} from "../config.js"

// 封装axios接口
function getIndex(){
  return new Promise(
    function(resolve,reject){
      axios.get(baseURL+"/list2")
      .then(res => {
        resolve(res.data)
      })
    }
  )
}

export{getIndex}